package study.optional.公共类;


import java.util.Optional;

/**
 * @Author 刘伟涛
 * @Date 2023/6/30 15:10
 **/
public class Car{
    Optional<Insurance> insurance;
    public Car(){

    }
    public Car(Optional<Insurance> insurance){
        this.insurance = insurance;
    }
    public Optional<Insurance> getInsurance(){
        return insurance;
    }
}
